<?php

#基础函数
include_once('_path.php');
include_once("../includes/init.php");

$ids = $_REQUEST['ids'];


if(empty($ids)){
    $_REQUEST['referrer'] = "index.php";
    redirect("请选择要删除的反馈信息",1);
}

if(!is_array($ids)){
	$ids = array();
	$ids[0] = $_REQUEST['ids'];
}
	if(sizeof($ids)){
		foreach ($ids as $id) {
			if(is_numeric($id)){
				switch ($_REQUEST['type']) {
					case 'delete':
						$database->execute("DELETE FROM feedback WHERE id = $id");
						//$database->execute("DELETE FROM series_rating WHERE series_id = ".$quote['series_id'].";");
						//$database->execute("DELETE manga_chapters, manga_scans FROM manga_chapters, manga_scans WHERE manga_chapters.chapter_id = manga_scans.chapter_id AND manga_chapters.series_id = ".$quote['series_id'].";");
						break;
				}
			}
		}
	}

$_REQUEST['referrer'] = "index.php";
redirect("删除反馈信息成功！");
?>